package com.xaicode.template.activemq.topic;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Component
@RestController
public class TestValue {

    @Value("${jms.topic.name}")
    private String name;

    @GetMapping("/test")
    public String name() {
        return name;
    }
}
